<!-- application/views/scripts/blog/index.phtml -->
 
<p><a href="<?php echo $this->url(
    array(
        'controller' => 'blog',
        'action'     => 'sign'
    ),
    'default',
    true) ?>">Sign Our Guestbook</a></p>
    
<p>
	<a href="<?php echo $this->url(
		array(
			'controller' => 'blog', 
			'action' => 'add' 
		), 
		'default', 
		true) ?>">Add Blog Entry</a>
</p>
 
Blog Entries: <br />
<dl>
    <?php foreach ($this->entries as $entry): ?>
    <dt>Title: 			<?php echo $this->escape($entry->BLEN_TITLE) ?></dt>
    <!-- Took out Escape function to preserve TinyMCE edits -->
    <dd>Description: 	<?php echo $entry->BLEN_DESC ?></dd>
    <dd>Create Date: 	<?php echo $entry->BLEN_CREATE_DATE->format('F j, Y, g:i a') ?>
    <?php echo $entry->BLEN_CREATE_DATE->getTimezone()->getName() ?></dd>
    <dd>Status: 		<?php echo $this->escape($entry->findParentRow('Application_Model_BlogStatus', 'Status')->BLST_DESC) ?></dd>
    <dd>Create User: 	<?php echo $this->escape($entry->findParentRow('Application_Model_User', 'CreateUser')->USER_NAME) ?></dd>
    <dd><a href="<?php echo $this->url( 
    	array(
    		'controller' 	=> 'blog', 
    		'action' 		=> 'edit', 
    		'id' 			=> $this->escape($entry->BLEN_ID)
    	), 
    	'default', 
    	true) ?>">Edit</a></dd>
    <?php endforeach ?>
</dl>